package reco.frame.demo.sample;

import com.umeng.analytics.MobclickAgent;

import reco.frame.demo.R;
import reco.frame.tv.view.TvRelativeLayoutAsGroup;
import reco.frame.tv.view.TvRelativeLayoutAsGroup.OnChildSelectListener;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.View;

public class TvRelativeLayoutAsGroupActivity extends Activity {

	String TAG="TvRelativeLayoutAsGroupActivity";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_relativelayoutasgroup);
		
		TvRelativeLayoutAsGroup trl_root=(TvRelativeLayoutAsGroup) findViewById(R.id.trl_root);
		
		trl_root.setOnChildSelectListener(new OnChildSelectListener() {
			
			@Override
			public void onChildSelect(View child) {
				
				Log.i(TAG, "当前选中的控件ID="+child.getId());
				
			}
		});
	}


	
	@Override
	protected void onResume() {
		MobclickAgent.onResume(this);
		super.onResume();
	}
	@Override
	protected void onPause() {
		MobclickAgent.onPause(this);
		super.onPause();
	}
}
